<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<meta name="keywords" content="<?php echo $this->pageKeywords?>" /> 
	<link rel="stylesheet" type="text/css" href="<?php echo Helper::getClientFile('site', 'css'); ?>"/>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-21775891-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
</head>

<body>
<div id="header">
	<div class="container">
		<div id="logo">
			<?php //echo CHtml::image('/', CHtml::encode(Yii::app()->name))?>
			<h1><?php echo CHtml::encode(Yii::app()->name)?></h1>
		</div>
		<div id="search">
			<form action="<?php echo Yii::app()->createUrl('index/index')?>" method="get">
				<input class="text" type="text" name="q" />
				<input class="button" type="submit" value="Search"/>
			</form>
		</div>
    	<div id="nav">
    		<?php $this->widget('zii.widgets.CMenu',array(
    			'items'=>array(
    				array('label'=>'Home', 'url'=>array('index/index'), 'active' => Yii::app()->getController()->getRoute() == 'index/index'),
    				array('label'=>'About', 'url'=>array('/site/about')),
    				array('label'=>'我的导航', 'url'=>array('/nav'), 'linkOptions' => array('target' => '_blank')),
    			),
    		)); ?>
        </div>
	</div>
</div>

<div class="clear"></div>

<!-- main -->
<div id="main" class="container">
	<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->
	<?php echo $content; ?>
</div>

<div class="clear"></div>

<!-- footer -->
<div id="footer">
	<div class="container">
		<div>
		Copyright &copy; <?php echo date('Y'), ' ', Yii::app()->name; ?>. 
		All Rights Reserved.<br/>
		</div>
	</div>
</div>
</body>
</html>